﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Generic;
using Runda.CMS.Common.Utility;
using Runda.CMS.Common.Entity;
using Runda.CMS.Bll;
using Runda.CMS.Workflow;
using System.Text;

namespace Runda.CMS.Portal.Workspace
{
    public partial class Desk_myInitProcess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                string str = "select * from Cms_Ctrt_Contract where CreatedBy = '" + Session["CurrentUserID"].ToString() + "' and InstanceID is not null and Status = " + System.Convert.ToInt32(Enumerator.ContractStatus.Pass).ToString();
                this.rptrPass.BindMode = 0;
                this.rptrPass.SQL = str;
                this.rptrPass.DataBind();

                str = "select * from Cms_Ctrt_Contract where CreatedBy = '" + Session["CurrentUserID"].ToString() + "' and InstanceID is not null and  Status not in (" + System.Convert.ToInt32(Enumerator.ContractStatus.Pass).ToString() + "," + System.Convert.ToInt32(Enumerator.ContractStatus.Draft) + ")";
                this.rptrNoPass.BindMode = 0;
                this.rptrNoPass.SQL = str;
                this.rptrNoPass.DataBind();
            }
        }
    }
}
